package response

type ListData struct {
	Rows  interface{} `json:"rows" binding:"required"`
	Total int64       `json:"total" binding:"required"`
}

type ResponseData struct {
	Code ResCode     `json:"code" binding:"required"` //相应状态码
	Msg  string      `json:"msg" binding:"required"`  //提示信息
	Data interface{} `json:"data,omitempty"`          //数据
}

func (r *ResponseData) Error() string {
	return r.Msg
}
